import api from '../controllers/address.js';
import koa_router from 'koa-router';
const router = koa_router();

router.get('/:user_id/addresses', api.getByUserId);
router.get('/addresses/:id', api.getById);
router.post('/addresses', api.create);
router.delete('/addresses/:id', api.removeById);
router.put('/addresses/:id', api.updateById);

export default router;
